
Vue.component2('a_1_0_0_1_0', {  
    template: `
        <div class="a_1_0_0_1_0_dir" ref="div":key="refresh" :style="'width='+data.width">
            <slot></slot>
        </div>
`,  
  data() {
      return {
        now_select:"-1",
        refresh:"1",/*用来刷新组件*/
        data:{width:"20%",
            height:"0",
        }
         
      };
  },
  mounted:function(){
    //c
    _this.change_height=function(){
       _this.$refs.div.style.height = _this.data.height;
    }
    //当页面尺寸修改,更改当前高度
    _this.data.change_size=function(obj){
        // console.log("??,o",obj)
        let height=obj.height;
        _this.data.height=(height-70)+'px';
        // console.log("now_height:", _this.data.height)
        ttime3(_this,'div',_this.change_height)
    }
       
  }
} 
);

